<?php /* Smarty version Smarty-3.1.14, created on 2014-12-11 15:13:01
         compiled from "..\templates\layouts\default.tpl" */ ?>
<?php /*%%SmartyHeaderCode:181755489520dc527e2-42105740%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'bade88d50b6d1492c402e56813fb4e867e187d31' => 
    array (
      0 => '..\\templates\\layouts\\default.tpl',
      1 => 1418272256,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '181755489520dc527e2-42105740',
  'function' => 
  array (
    'print_product_category' => 
    array (
      'parameter' => 
      array (
      ),
      'compiled' => '',
    ),
  ),
  'variables' => 
  array (
    'titleForLayout' => 0,
    'search' => 0,
    'sum' => 0,
    'cart_product' => 0,
    'value' => 0,
    'k' => 0,
    'key' => 0,
    'count_wishlist' => 0,
    'list_product_category' => 0,
    'product_category' => 0,
    'id' => 0,
    'contentForLayout' => 0,
    'notice' => 0,
  ),
  'has_nocache_code' => 0,
  'version' => 'Smarty-3.1.14',
  'unifunc' => 'content_5489520ddafe09_08164962',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5489520ddafe09_08164962')) {function content_5489520ddafe09_08164962($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'C:\\wamp\\www\\shop_baby\\libraries\\smarty\\plugins\\modifier.date_format.php';
?><!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title><?php echo $_smarty_tpl->tpl_vars['titleForLayout']->value;?>
</title>
<meta name="description" content="Things For Cuties - A Premium Responsive Kids / Baby Related Shop Template, available at Themeforest." />
<link rel="stylesheet" type="text/css" href="/templates/css/source_sans_pro.css" />
<link rel="stylesheet" type="text/css" href="/templates/css/gochi_hand.css" />
<link rel="stylesheet" type="text/css" href="/templates/css/stylesheet.css" />
<link rel="stylesheet" type="text/css" href="/templates/css/mobile.css" />
<link rel="stylesheet" type="text/css" href="/templates/css/cloud-zoom.css" />
<link rel="stylesheet" type="text/css" href="/templates/css/carousel.css" />
<link rel="stylesheet" type="text/css" href="/templates/css/jquery.gritter.css" />
<link rel="stylesheet" type="text/css" href="/templates/css/jquery-ui.css" />
<link rel="stylesheet" type="text/css" href="/templates/css/styles_menu.css" />
<script type="text/javascript" src="/templates/scripts/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="/templates/scripts/js/jquery.jcarousel.min.js"></script>
<script type="text/javascript" src="/templates/scripts/js/jquery.cycle.all.js"></script>
<script type="text/javascript" src="/templates/scripts/js/jquery.selectBox.js"></script>
<script type="text/JavaScript" src="/templates/scripts/js/cloud-zoom.1.0.2.js"></script>
<script type="text/JavaScript" src="/templates/scripts/js/cuties.js"></script>
<script type="text/JavaScript" src="/templates/scripts/js/jquery.gritter.js"></script>
<script type="text/JavaScript" src="/templates/scripts/js/jquery-ui-1.11.1.js"></script>
<script type="text/JavaScript" src="/templates/scripts/js/script_menu.js"></script>
<script type="text/JavaScript" src="/templates/scripts/js/order_cart.js"></script>


</head>
<body>
<div id="container">
  <div id="header">
    <div id="logo"><a href="/"><img src="/templates/images/logo.png" title="Shop Baby Cute" alt="Shop Baby Cute" /></a></div>
    <div id="header_right">
      <form action="#" method="post" enctype="multipart/form-data">
        <div id="language">
          <ul class="currence">
            <li class="first_item"><a class="selected" title="Việt Nam">VI</a></li>
            <li><a title="English">EN</a></li>
          </ul>
        </div>
      </form>
      <form action="#" method="post" enctype="multipart/form-data">
        <div id="currency">
          <ul class="currence">
            <li class="first_item"><a title="Việt Nam Đồng">VNĐ</a></li>
            <li class="last_item"><a class="selected" title="US Dollar">$</a></li>
          </ul>
        </div>
      </form>
      <form action="/tag/xl_tag.php" method="get" enctype="multipart/form-data">
      <input type="submit" class="button mr" value="search" style="position:absolute;right:-15px;top:54px;"/>
      <div id="search">
        <input type="text" name="search" placeholder="Tìm kiếm" value="<?php echo $_smarty_tpl->tpl_vars['search']->value;?>
"/>
      </div>
      </form>
      <div id="cart">
        <div class="heading">
          <div class="cart_top_in">
            <h4>Giỏ hàng</h4>
            <a><span id="cart-total"><?php if (count($_SESSION['cart'])>0){?><?php echo $_smarty_tpl->tpl_vars['sum']->value;?>
 sản phẩm - <?php echo number_format($_SESSION['sum_of_money']);?>
 VNĐ<?php }else{ ?>chưa có sản phẩm<?php }?></span></a></div>
        </div>
        <div class="content">
          <div class="mini-cart-info">
            <table>
            <thead>
                <tr>
                    <th>Hình ảnh</th>
                    <th>Tên sản phẩm</th>
                    <th>Số lượng</th>
                    <th>Size</th>
                    <th>Giá</th>
                    <th>Hủy</th>
                </tr>
            </thead>
            <tbody>
              <?php  $_smarty_tpl->tpl_vars['cart_product'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['cart_product']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_SESSION['cart']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['cart_product']->key => $_smarty_tpl->tpl_vars['cart_product']->value){
$_smarty_tpl->tpl_vars['cart_product']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['cart_product']->key;
?>
              <?php  $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['value']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['cart_product']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value){
$_smarty_tpl->tpl_vars['value']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['value']->key;
?>
              <tr>
                <td class="image"><a href="/<?php echo $_smarty_tpl->tpl_vars['value']->value['alias'];?>
/<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
/"><img src="/upload/product/<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['value']->value['day_time'],'%m-%Y');?>
/<?php echo $_smarty_tpl->tpl_vars['value']->value['image'];?>
" alt="" title=""/></a></td>
                <td class="name"><a href="/<?php echo $_smarty_tpl->tpl_vars['value']->value['alias'];?>
/<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
/"><?php echo $_smarty_tpl->tpl_vars['value']->value['name'];?>
</a>
                  <div> </div></td>
                <td class="quantity">x&nbsp;<?php echo $_smarty_tpl->tpl_vars['value']->value['quantity'];?>
</td>
                <td class="size">&nbsp;<?php echo $_smarty_tpl->tpl_vars['value']->value['size'];?>
</td>
                <td class="total"><?php echo number_format($_smarty_tpl->tpl_vars['value']->value['into_money']);?>
 VNĐ</td>
                <td class="remove"><a href="/delete/<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
/<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
"><img src="/templates/images/remove-small.png" alt="Remove" title="Remove"/></a></td>
              </tr>
              <?php } ?>
              <?php } ?>
                </tbody>
            </table>
          </div>
          <div class="mini-cart-total">
            <table>
              <tbody>
                <tr class="last_item">
                  <td class="right"><b>Tổng tiền:</b></td>
                  <td class="right"><?php if (count($_SESSION['cart'])>0){?><?php echo number_format($_SESSION['sum_of_money']);?>
<?php }else{ ?>0&nbsp;<?php }?>VNĐ</td>
                </tr>
              </tbody>
            </table>
          </div>
          <div class="checkout"><a class="button mr" href="/don-hang.html">Xem giỏ hàng</a><a class="button" href="/thanh-toan.html">Thanh toán</a></div>
        </div>
      </div>
      <div id="bottom_right">
      <div class="links">
        <?php if (isset($_SESSION['login_user'])){?>
        <p id="welcome" style="font-weight:bold;font-size:15px;"> Xin chào : <span style="font-size:15px"><?php echo ucwords($_SESSION['login_user']['user_name']);?>
</span><a href="/login/logout.php" style="font-weight:bold;font-size:15px;">Đăng xuất&nbsp;&nbsp;&nbsp;</a></p>
        <p id="welcome"><a href="/my_account.html">Tài khoản của tôi</a></p>
        <?php }else{ ?>
        <p id="welcome"><a href="/login.html">Đăng nhập</a><a href="/registered.html">tạo tài khoản mới</a>. </p>
        <?php }?>
        <p id="welcome"><a href="/wishlist.html" id="wishlist-total">Sản phẩm yêu thích <?php if (isset($_SESSION['login_user'])){?>(<?php echo $_smarty_tpl->tpl_vars['count_wishlist']->value;?>
)<?php }elseif(isset($_SESSION['product_wishlist'])){?>(<?php echo count($_SESSION['product_wishlist']);?>
)<?php }else{ ?> (0)<?php }?></a><a href="/comparison.html" id="wishlist-total">So Sánh sản phẩm <?php if (isset($_SESSION['product_comparison'])){?>(<?php echo count($_SESSION['product_comparison']);?>
)<?php }else{ ?> (0)<?php }?></a></p>
        </div>
      </div>
    </div>
  </div>
  <div id="menu">
    <ul>
      <li class="menu_item down"><a href="/">Trang chủ</a></li>
      <?php if (!function_exists('smarty_template_function_print_product_category')) {
    function smarty_template_function_print_product_category($_smarty_tpl,$params) {
    $saved_tpl_vars = $_smarty_tpl->tpl_vars;
    foreach ($_smarty_tpl->smarty->template_functions['print_product_category']['parameter'] as $key => $value) {$_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value);};
    foreach ($params as $key => $value) {$_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value);}?>
      <?php  $_smarty_tpl->tpl_vars['product_category'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['product_category']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['list_product_category']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['product_category']->key => $_smarty_tpl->tpl_vars['product_category']->value){
$_smarty_tpl->tpl_vars['product_category']->_loop = true;
?>
      <?php if ($_smarty_tpl->tpl_vars['product_category']->value['parent']==$_smarty_tpl->tpl_vars['id']->value&&$_smarty_tpl->tpl_vars['product_category']->value['status']==1){?>
      <li class="menu_item down"><a href="/<?php echo $_smarty_tpl->tpl_vars['product_category']->value['alias'];?>
/"><?php echo $_smarty_tpl->tpl_vars['product_category']->value['name'];?>
</a>
        <div class="sub_menu" style="">
          <div class="bubble"></div>
          <div class="sub_menu_block" style="width:100%">
            <ul>
              <?php smarty_template_function_print_product_category($_smarty_tpl,array('list_product_category'=>$_smarty_tpl->tpl_vars['list_product_category']->value,'id'=>$_smarty_tpl->tpl_vars['product_category']->value['id']));?>

            </ul>
          </div>
        </div>
      </li>
      <?php }?>
      <?php } ?>
      <?php $_smarty_tpl->tpl_vars = $saved_tpl_vars;
foreach (Smarty::$global_tpl_vars as $key => $value) if(!isset($_smarty_tpl->tpl_vars[$key])) $_smarty_tpl->tpl_vars[$key] = $value;}}?>

      <?php smarty_template_function_print_product_category($_smarty_tpl,array('list_product_category'=>$_smarty_tpl->tpl_vars['list_product_category']->value,'id'=>0));?>

    </ul>
  </div>
  <div id="mobile-menu">
    <div id="mobile-menu-nav">
      <ul>
        <li><a href="category.html">Quần áo bé nữ</a> </li>
        <li><a href="category.html">Quần áo bé nam</a> </li>
        <li><a href="category.html">Đồ chơi</a> </li>
        <li><a href="category.html">Đồ ngủ</a> </li>
        <li><a href="category.html">Xe đẩy</a> </li>
        <li><a href="category.html">Ghế trẻ em</a> </li>
      </ul>
    </div>
  </div>
  <?php echo $_smarty_tpl->tpl_vars['contentForLayout']->value;?>
 </div>
<div id="footer">
  <div id="footer_top">
    <div class="footer_wrapper">
      <div id="footer_top_content">
        <div id="footer_top_item">
          <div class="footer_top_item" id="about_us">
            <h3 class="title_item_1 down"><a href="about.html">Về chúng tôi</a></h3>
            <p class="text_item content_item_1 about"> Uy tính và chất lượng luôn mà mục tiều hàng đầu của chúng tôi. Với những sản phẩm được kiểm tra và giám định sản phẩm an toàn bạn sẻ thấy an tâm hơn khí dùng cho bé yêu của bạn </p>
            <p class="text_item content_item_1 about">Shop baby luôn đi đầu trong lĩnh vật thời trang cho mẹ và bé.</p>
          </div>
          <div class="footer_top_item" id="contact_us">
            <h3 class="title_item_2 down"><a href="contact.html">Liên hệ</a></h3>
            <div class="text_item">
              <p class="info_contact"> <span>Shop Baby Cute <br />
                chỉ có các sản phẩm tốt nhất trẻ con<br />
                4/8B Phạm Hùng - F4 - Q8 <br />
                TP Hồ Chí Minh<br />
                </span> </p>
              <p class="online_contact"> <span class="phone">+84 01626 221 301</span> <span class="fax">84-01626 221 301</span> <span class="mail"><a class="color" href="mailto:jacksonit.org@gmail.com" title="Mail">jacksonit.org@gmail.com</a></span> </p>
            </div>
          </div>
          <div class="footer_top_item " id="twitter_news">
            <h3 class="title_item_3 down" ><a href="http://www.twitter.com/ovuinhi">Twitter Feed</a></h3>
            <div class="text_item content_item_3">
              <div id="twitter_update_list"> Chua biết </div>
            </div>
          </div>
          <div class="footer_top_item last_footer_item" id="facebook">
            <h3 class="title_item_4 down"><a href="https://www.facebook.com/ovuinhicom">Facebook</a></h3>
            <div class="text_item content_item_4">
              <div id="fb-root"></div>
            </div>
          </div>
          <div class="clear"></div>
        </div>
      </div>
    </div>
  </div>
  <div class="footer_wrapper">
    <div id="footer_bottom">
      <div class="footer_bottom_item">
        <h3 class="bottom_item_1 down"><a>Thông tin</a></h3>
        <ul class="menu_footer_item text_item">
          <li><a href="about.html" title="About Us">Giới thiệu</a></li>
          <li><a href="blog.html" title="Delivery Information">Blog</a></li>
          <li><a href="comparison.html" title="Privacy Policy">Danh sách yêu thích</a></li>
          <li><a href="#" title="Terms &amp; Conditions">Điều khoản & amp; Điều kiện</a></li>
        </ul>
      </div>
      <div class="footer_bottom_item">
        <h3 class="bottom_item_2 down"><a>Dịch vụ khách hàng</a></h3>
        <ul class="menu_footer_item text_item">
          <li><a href="contact.html">Liên hệ</a></li>
          <li><a href="#">Lợi nhuận</a></li>
          <li><a href="#">Sơ đồ website</a></li>
        </ul>
      </div>
      <div class="footer_bottom_item">
        <h3 class="bottom_item_3 down"><a>Mở rộng</a></h3>
        <ul class="menu_footer_item text_item">
          <li><a href="brands.html">Thương hiệu</a></li>
          <li><a href="gifts.html">Phiếu quà tặng</a></li>
          <li><a href="#">Đại lý</a></li>
          <li><a href="specials.html">Khuyến mãi</a></li>
        </ul>
      </div>
      <div class="footer_bottom_item">
        <h3 class="bottom_item_4 down"><a>Tài khoản</a></h3>
        <ul class="menu_footer_item text_item">
          <li><a href="myaccount.html">Tài khoản của tôi</a></li>
          <li><a href="orderhistory.html">Lịch sử đơn hàng</a></li>
          <li><a href="wishlist.html">Sản phẩm yêu thích</a></li>
          <li><a href="#">Bản tin</a></li>
        </ul>
      </div>
      <div class="clear"></div>
    </div>
    <div id="mobile-footer">
      <div class="mobile-footer-menu">
        <h3>Thông tin</h3>
        <div class="mobile-footer-nav" style="display: none;">
          <ul>
            <li><a href="about.html" title="About Us">Giới thiệu</a></li>
            <li><a href="blog.html" title="Delivery Information">Blog</a></li>
            <li><a href="comparison.html" title="Privacy Policy">Danh sách yêu thích</a></li>
            <li><a href="#" title="Terms &amp; Conditions">Điều khoản & amp; Điều kiện</a></li>
          </ul>
        </div>
        <h3>Dịch vụ khách hàng</h3>
        <div class="mobile-footer-nav" style="display: none;">
          <ul>
            <li><a href="contact.html">Liên hệ</a></li>
            <li><a href="#">Lợi nhuận</a></li>
            <li><a href="#">Sơ đồ trang web</a></li>
          </ul>
        </div>
        <h3>Mở rộng</h3>
        <div class="mobile-footer-nav" style="display: none;">
          <ul>
            <li><a href="brands.html">Thương hiệu</a></li>
            <li><a href="gifts.html">Phiếu quà tặng</a></li>
            <li><a href="#">Đại lý</a></li>
            <li><a href="specials.html">Khuyến mãi</a></li>
          </ul>
        </div>
        <h3>Tài khoản</h3>
        <div class="mobile-footer-nav" style="display: none;">
          <ul>
            <li><a href="myaccount.html">Tài khoản của tôi</a></li>
            <li><a href="orderhistory.html">Lịch sử đặt hàng</a></li>
            <li><a href="wishlist.html">Sản phẩm yêu thích</a></li>
            <li><a href="#">Bản tin</a></li>
          </ul>
        </div>
      </div>
    </div>
  </div>
  <div id="footer-text">
    <p>Shop Baby Cute © 2014 - Được hỗ trở bởi <a href="http://jacksonit.org">jacksonit.org</a></p>
  </div>
</div>
<?php if ($_smarty_tpl->tpl_vars['notice']->value['msg']!=''){?>

<script type="text/javascript">
	$(function(){
		$.gritter.add({
		title: 'Thông báo gửi đến bạn!',
		text: "<?php echo $_smarty_tpl->tpl_vars['notice']->value['msg'];?>
",
		image: "/upload/icon/<?php echo $_smarty_tpl->tpl_vars['notice']->value['type_notice'];?>
.png",
		sticky: true,
		time: '',
        class_name: 'my-sticky-class'
        });
    return false;
   
});
</script>

<?php }?>
<script>
$(function() {
    $( "#datepicker" ).datepicker({ 
        changeYear:true, changeMonth:true, yearRange:"1900:2050",
        dateFormat: "yy-mm-dd",
        dayNamesMin: [ "Thứ 2", "Thứ 3", "Thứ 4", "Thứ 5", "Thứ 6", "Thứ 7", "Chủ Nhật" ],
    });
});
</script>

</body>
</html>

<?php }} ?>